<h1>
<?
if($mode=='add')	echo 'Thêm mới trang';
if($mode=='edit')	echo 'Sửa trang '.$p_title;
?>
</h1>
	<div class="content_block">
		<div class="form_tbl" id="slides">
			
		
				<span class="border_d clearfix">
					<a name="form"></a>
					<form name="themeform" enctype="multipart/form-data" method="post">
						<div class="form_item">
							<label><span class="required_marker">*</span> Tiêu đề:</label>
							<input type="text" name="p_title" value="<?=$p_title;?>" /> 
						</div>
						<div class="form_item">
							<label><span class="required_marker">*</span> Status:</label>
                            <?=ipos_status('p_status',$p_status);?>
						</div>
						<div class="form_item">
					  <script type="text/javascript" src="./js/bbcode/bbcode.js"></script>
                      <script type="text/javascript">
					  $(document).ready(function(){
						$("#p_contents").bbcode({tag_bold:true,tag_italic:true,tag_underline:true,tag_link:true,tag_image:true,button_image:true});
						process();
					  });
                      </script>
					<textarea id="p_contents" name="p_contents" style="font-family: tahoma;font-size: 10pt;width:825px; height: 200px;"><?=$p_contents;?></textarea>
						</div>
						<div class="form_item">
							<label style="color:#777;padding-top:10px;"><span class="required_marker">*</span> Phần bắt buộc phải điền</label>
							<span onmouseout="this.className='mb_btn1'" onmouseover="this.className='mb_btn1_hover'" class="mb_btn1">
								<button value="Submit" name="submit" type="submit">Gửi đi</button>
							</span>
						</div>
					</form>
					
				</span>

			</div>
		</div>
<script language="JavaScript" type="text/javascript">
  var frmvalidator  = new Validator("themeform");
  frmvalidator.addValidation("p_title","req","Vui lòng nhập tiêu đề");  
  frmvalidator.addValidation("p_contents","req","Vui lòng nhập nội dung");
</script>